float[] seed = new float[9];
int seqReq=0;
int seqAct=0;
int simAct=0;

void InitSeed() {
  seed[0]= 0; //flowerstate (target) 
  seed[1]= 1; //program
  seed[2]= 1; //speedmult
  seed[3]= 1; //duration type
  seed[4]= 0; //duration value
  seed[5]= 1; //transition type
  seed[6]= 0; //ping pong
  seed[7]= 0; //use sakura
  seed[8]= 0; //rotation value
}

void UpdateSeed(int index, float value) {
  seed[index]= value;
}

void sMsg()
{
  oscP5Multi.send(multiMsg);
}
void mSetPattern(String addr) {
  multiMsg = new OscMessage(addr);
}
void mSetFArray(float[] args) {
  multiMsg.add(args);
}
void mSetFlowerState() {
  multiMsg.add(FlowerState);
}
void mSetFArg(float arg) {
  multiMsg.add(arg);
}
void sFacetStop() {
  mSetPattern("/ClearFacets");
    mSetFlowerState();
//  mSetFArg(32768);
  sMsg();
}
void GoLaunch(boolean fresh) {
  println(" @GoLaunch");
  
  if (goMode==2 || goMode==3) {// Run androids and local instances //oscLaunch to launch on flowers
    mSetPattern("LC/"+fresh); //used to have "true" also.
    mSetFArray(seed);
    sMsg();
    //multiMsg = new OscMessage("/LaunchSeed/true");multiMsg.add(seed);
  }
}
void GoDirect(){
  mSetPattern("DC/");
  mSetFArray(seed);
  sMsg();
}
